<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <title><?php echo C('WEB_SITE_TITLE');?></title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">

        <link href="__PUBLIC__/Index/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
        <link href="__PUBLIC__/Index/css/style.css" rel="stylesheet" type="text/css"/>
        <link rel="stylesheet" href="__PUBLIC__/metis/assets/lib/datatables/3/dataTables.bootstrap.css">


        <script src="__PUBLIC__/Index/js/jquery-1.11.1.min.js" type="text/javascript"></script>
        <script src="__PUBLIC__/Index/js/bootstrap.min.js" type="text/javascript"></script>

        <script src="__PUBLIC__/metis/assets/lib/datatables/jquery.dataTables.js"></script>
        <script src="__PUBLIC__/metis/assets/lib/datatables/3/dataTables.bootstrap.js"></script>



    </head>
    <body>
        <header class="navbar navbar-static-top bs-docs-nav" id="top" role="banner">
            <div class="container">
                <div class="navbar-header">
                    <a class="navbar-brand" href="#">
                        <img src="__PUBLIC__/Index/img/brand.jpg" alt=""/>
                    </a>
                </div>
                <nav class="collapse navbar-collapse" role="navigation">
                    <ul class="nav navbar-nav">
                        <li>
                            <a href="javascript:void(0)"><b>欢迎：<?php echo ($_SESSION["current_member"]["real_name"]); ?></b></a>
                        </li>
                        <li>
                            <a href="<?php echo U('Index/Index/index');?>"><i class="glyphicon glyphicon-home"></i>返回主页</a>
                        </li>
                    </ul>
                    <!--                     <div class="nav navbar-nav navbar-right" style="margin-top:5px;">
                                            <button type="button" class="btn btn-info" id="btnExit">返回</button>
                                        </div> -->
                </nav>
            </div>
        </header>

        <div class="container">
           
            <div class="row">
                <div class="col-lg-12">
                    <div class="box">
                        <header>
                            <div class="icons"> <i class="fa fa-table"></i>
                            </div>
                            <h3>文档列表</h3>
                            <hr>
                            <div class="text-right" style="padding: 5px 10px 0px 0px">
                                <!--<button type="button" id="btnExportReportData" class="btn btn-default btn-sm">导出</button>-->
                            </div>
                        </header>
                        <div class="body">
                            <table id="pdocListTable" class="table table-bordered table-condensed table-hover table-striped text-center">
                                <thead>
                                    <tr>
                                        <th class="text-center">序号</th>
                                        <th class="text-center">文档编号</th>
                                        <th class="text-center">文档名称</th>
                                        <th class="text-center">文档类型</th>
                                        <th class="text-center">创建日期</th>
                                        <th class="text-center">学习状态</th>
                                    </tr>
                                </thead>
                                <tbody>
                                
                                   <?php if(is_array($pdocs)): $k = 0; $__LIST__ = $pdocs;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$pdoc): $mod = ($k % 2 );++$k;?><tr>
                                           <td><?php echo ($k); ?></td>
                                           <td><?php echo ($pdoc["pdoc_sn"]); ?></td>
                                           <td>
                                               <a href="<?php echo U('LearnPdoc/index');?>?sn=<?php echo ($pdoc["pdoc_sn"]); ?>" target="_self"><?php echo ($pdoc["pdoc_name"]); ?> </a>
                                            </td>
                                           <td><?php echo ($pdoc["pdoc_catagory"]); ?></td>
                                           <td><?php echo (substr($pdoc["pdoc_createtime"],0,10)); ?></td>
                                           <td><?php echo (formattimestudy($pdoc["time_study"])); ?></td>
                                       </tr><?php endforeach; endif; else: echo "" ;endif; ?>
                                

                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
            
            
            
            
        </div>

    <footer>
    <nav class="navbar navbar-default navbar-fixed-bottom bs-docs-nav" role="navigation">
        <div class="container">
            <p style="margin-top:12px;text-align: center;">
                Copyright &copy; 2014  长虹-工程技术中心
            </p>
        </div>
    </nav>
</footer>
    <script type="text/javascript">

//可以在源码中，搜索"language"进行汉化
var dtChinese = {
	            "lengthMenu": "每页显示 _MENU_ 行数据",
	            "zeroRecords": "没有数据...",
	            "info": "当前第 _PAGE_ 页 / 共 _PAGES_ 页",
	            "infoEmpty": "没有记录...",
	            "emptyTable": "表格中没有数据",
	            "search": "搜索：",
	            "infoFiltered": "(filtered from _MAX_ total records)",
	            "paginate": {
	            	"first": "第一页",
	            	"previous": "上一页",
				    "next": "下一页",
				    "last": "最后一页"
				}
	        };
                
</script>

    <script>
        $(function () {
            $("#pdocListTable").dataTable({
                "scrollX": true,
                "language": dtChinese
            });
        });
    </script>
</body>
</html>